package by.demchenko.sample.dataaccess.base;

import by.demchenko.sample.datamodel.Course;
import by.demchenko.sample.datamodel.Person;
import by.demchenko.sample.datamodel.Schedule;

import java.util.Date;
import java.util.List;

public interface ScheduleDao extends AbstractDao<Integer, Schedule> {

    Schedule findRecord(Course course, Date date);

    int getCount();

    List<Schedule> findByTeacher(Person teacher);

    List<Person> getRegisteredStudents(Schedule schedule);

    int getCountByTeacher(Person teacher);
}
